package shared;

import java.io.Serializable;

public class RMIPair<K, V> implements Serializable
{
        private K first;
        private V second;

        public RMIPair(K key, V value) {
                this.first = key;
                this.second = value;
        }

        public K getFirst() {
                return first;
        }

        public V getSecond() {
                return second;
        }

    @Override
        public String toString() {
                return String.format("%s : %s", first.toString(), second.toString());
        }
}